package com.fz.dao;

import com.fz.entity.Student;
import com.fz.mapper.Studentmapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

/**
 * Created by webrx on 2017-09-12.
 */
@Service
public class StudentDao implements Studentmapper{
    @Autowired
    protected Studentmapper dao;
    public List<Student> queryall() {
        return dao.queryall();
    }

    public List<Student> query(int start, int size) {
        return dao.query(start,size);
    }

    public int pagecount() {
        return dao.pagecount();
    }

    public int deleteById(int id) {
        return dao.deleteById(id);
    }

    public int insert(Student student) {
        return dao.insert(student);
    }

    public int update(Student student) {
        return dao.update(student);
    }

    public Student qu(int id) {
        return dao.qu(id);
    }
}
